using System;
using Com.Modules.PubEntities;
using SqlSugar;

namespace Com.Modules.StandardModule.Entities;

[SugarTable("base_supplier_category", TableDescription = "供应商分类表")]
public class ExampleEntity:StandardEntity
{
    [SugarColumn(ColumnName = "code", ColumnDescription = "分类编码（唯一）")]
    public string Code{ get; set; } = string.Empty;
    
    [SugarColumn(ColumnName = "name", ColumnDescription = "分类名称")]
    public string Name{ get; set; } = string.Empty;
    
    [SugarColumn(ColumnName = "parent_id", ColumnDescription = "上级分类ID")]
    public int ParentId{ get; set; }
    
    [SugarColumn(ColumnName = "depth", ColumnDescription = "层级")]
    public int Depth{ get; set; }
    
    [SugarColumn(ColumnName = "path", ColumnDescription = "路径信息")]
    public string Path{ get; set; } = string.Empty;
    
    [SugarColumn(ColumnName = "is_end_node", ColumnDescription = "是否末级结点")]
    public int IsEndNode{ get; set; }
    
    [SugarColumn(ColumnName = "is_enabled", ColumnDescription = "是否启用")]
    public int IsEnabled{ get; set; }
}
